﻿<UserControl x:Class="SLWebApp.FlightsVessels"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
   xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
   xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:tookit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="800">
    <tookit:BusyIndicator x:Name="busyIndicator" IsBusy="False">
        <Grid x:Name="LayoutRoot" Background="White">
            <StackPanel>
                <Border Height="10"></Border>
                <Border BorderThickness="1" Height="30" BorderBrush="#b4b4b4" CornerRadius="1" >
                    <Border.Background>
                        <ImageBrush ImageSource="/SLWebApp;component/img/operate_box_bg.png" />
                    </Border.Background>
                    <StackPanel  Orientation="Horizontal" HorizontalAlignment="Left" >
                        <TextBlock Text="操作：" Padding="10,6" Height="30" Width="50"/>
                        <Image Width="16" Height="16" Source="/SLWebApp;component/img/icon_add.png"></Image>
                        <TextBlock x:Name="btnAdd_VesselSchedule"  MouseLeftButtonDown="btnAdd_VesselSchedule_MouseLeftButtonDown"  Padding="3,6" Cursor="Hand">增加</TextBlock>
                        <TextBlock Padding="3,5">|</TextBlock>
                        <Image Width="16" Height="16" Source="/SLWebApp;component/img/icon_delete.png"></Image>
                        <TextBlock Padding="3,6" Cursor="Hand" x:Name="txtBlkDelete" MouseLeftButtonDown="txtBlkDelete_MouseLeftButtonDown">删除</TextBlock>
                        <TextBlock Padding="3,5">|</TextBlock>
                        <Image Width="16" Height="16" Source="/SLWebApp;component/img/Icon-Search.png"></Image>
                        <TextBlock Padding="3,6" Cursor="Hand" x:Name="txtblkUpdate" MouseLeftButtonDown="txtblkUpdate_MouseLeftButtonDown">修改</TextBlock>
                        <TextBlock Padding="3,5">|</TextBlock>
                        <Image Width="16" Height="16" Source="/SLWebApp;component/img/Icon-Search.png"></Image>
                        <TextBlock Padding="3,6"  x:Name="btnSearch"   MouseLeftButtonDown="btnSearch_MouseLeftButtonDown" Cursor="Hand">查询</TextBlock>
                    </StackPanel>
                </Border>

                <Border BorderThickness="0" Height="5" >
                </Border>

                <Border BorderThickness="1" Height="35" BorderBrush="#b4b4b4" CornerRadius="1" >
                    <Border.Background>
                        <ImageBrush ImageSource="/SLWebApp;component/img/operate_box_bg.png" />
                    </Border.Background>
                    <Grid Height="30">
                        <Grid.RowDefinitions>
                            <RowDefinition  Height="30" />
                        </Grid.RowDefinitions>
                        <StackPanel Grid.Row="0"  Orientation="Horizontal" HorizontalAlignment="Left" Height="30" >
                            <TextBlock Padding="10,6" Height="30" >服务：</TextBlock>
                            <ComboBox x:Name="cbmSL_first" SelectionChanged="cbmSL_first_SelectionChanged" MinWidth="100" Height="22" >
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Horizontal">
                                            <!--<TextBlock Text="{Binding Path=ID}" Width="40" />-->
                                            <!--航线代码-->
                                            <TextBlock Text="{Binding Path=RouteName}" Width="Auto" />
                                            <!--航线名称-->
                                        </StackPanel>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>

                            </ComboBox>

                            <TextBlock Padding="10,6" Height="30" >服务航线：</TextBlock>
                            <ComboBox x:Name="cmbSL_second" MinWidth="100" Height="22" >
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Horizontal">
                                            <!--<TextBlock Text="{Binding Path=ID}" Width="60" />-->
                                            <!--航线代码-->
                                            <TextBlock Text="{Binding Path=RouteName}" Width="Auto" />
                                            <!--航线名称-->
                                            <TextBlock Text="{Binding Path=ChildRouteName}" Width="Auto" />
                                        </StackPanel>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>
                        </StackPanel>
                    </Grid>
                </Border>


                <data:DataGrid  Margin="0 5" x:Name="dtgd"    Height="Auto" MinHeight="300"  AutoGenerateColumns="False" HorizontalContentAlignment="Center">
                    <data:DataGrid.Columns>
                        <!--<sdk:DataGridTextColumn Header="服务航线"  Width="10*"  Binding="{Binding  SLN_NAME}" IsReadOnly="True"></sdk:DataGridTextColumn>-->
                        <sdk:DataGridTextColumn Header="班期"  Binding="{Binding FLIGHT_LOW_VALUE}" Width="10*" IsReadOnly="True"></sdk:DataGridTextColumn>
                        <sdk:DataGridTextColumn Header="船舶中文名" Binding="{Binding VSL_CNNAME }" Width="10*" IsReadOnly="True"></sdk:DataGridTextColumn>
                        <sdk:DataGridTextColumn Header="船舶英文名" Binding="{Binding VSL_ENNAME}" Width="10*" IsReadOnly="True"></sdk:DataGridTextColumn>
                        <sdk:DataGridTextColumn Header="航班船编号" Binding="{Binding  LNR_NO }" Width="10*" IsReadOnly="True"></sdk:DataGridTextColumn>
                        <sdk:DataGridTextColumn Header="进口航次步长" Binding="{Binding LNR_ISTEP  }" Width="10*" IsReadOnly="True"></sdk:DataGridTextColumn>
                        <sdk:DataGridTextColumn Header="出口航次步长" Binding="{Binding LNR_ESTEP}" Width="10*" IsReadOnly="True"></sdk:DataGridTextColumn>
                        <sdk:DataGridTextColumn Header="出口航次（初始）" Binding="{Binding  LNR_EVOYAGE}" Width="10*" IsReadOnly="True"></sdk:DataGridTextColumn>
                        <sdk:DataGridTextColumn Header="进口箱量" Binding="{Binding  LNR_IAMOUNT }" Width="10*" IsReadOnly="True"></sdk:DataGridTextColumn>
                        <sdk:DataGridTextColumn Header="出口箱量" Binding="{Binding  LNR_EAMOUNT}" Width="10*" IsReadOnly="True"></sdk:DataGridTextColumn>
                    </data:DataGrid.Columns>

                </data:DataGrid>


                <!--分页-->
                <!--<Border BorderThickness="1" Height="30" BorderBrush="#b4b4b4" CornerRadius="1" >-->
                <data:DataPager  DisplayMode="FirstLastPreviousNext"  Source="{Binding}" ></data:DataPager>
                <!--</Border>-->
            </StackPanel>
        </Grid>
    </tookit:BusyIndicator>
</UserControl>
